home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / wwbbs31_source.lha / WWBBS / Install < prev    next >
Text File  |  1995-01-07  |  3KB  |  161 lines

  1. (set is-installed
  2.     (exists "WWBBS:" (noreq))
  3. )
  4.  
  5. (if is-installed
  6.     (
  7.         (message "If World Wide BBS is currently running, then quit the program before continuing.")
  8.         (run "Avail >NIL: FLUSH")
  9.         (run "Assign WWBBSAUX: DISMOUNT")
  10.         (run "Resident WWBBS:BBSRx REMOVE")
  11.         (set @default-dest (expandpath "WWBBS:"))
  12.     )
  13.     (
  14.         (set default-dest
  15.             (askdir
  16.                 (prompt "Where would you like to install World Wide BBS?\n(A directory will be created)")
  17.                 (help @askdir-help)
  18.                 (default @default-dest)
  19.             )
  20.         )
  21.  
  22.         (set @default-dest default-dest)
  23.  
  24.         (set @default-dest
  25.             (tackon @default-dest "WWBBS")
  26.         )
  27.     )
  28. )
  29.  
  30. (message "Installing World Wide BBS in\n" @default-dest)
  31.  
  32. (set wwbbs-dir @default-dest)
  33.  
  34. (if (NOT is-installed)
  35.     (makedir wwbbs-dir
  36.         (prompt "Create new directory\n" wwbbs-dir)
  37.         (help @makedir-help)
  38.         (infos)
  39.     )
  40. )
  41.  
  42. (if (NOT is-installed)
  43.     (makeassign "WWBBS" wwbbs-dir)
  44. )
  45.  
  46. (copylib
  47.     (prompt "Copy wwbbs.library to LIBS:")
  48.     (help @copylib-help)
  49.     (source "Libs/wwbbs.library")
  50.     (dest "LIBS:")
  51.     (confirm)
  52. )
  53.  
  54. (copyfiles
  55.     (prompt "Copy handler")
  56.     (help @copyfiles-help)
  57.     (source "L/wwbbsaux-handler")
  58.     (dest "L:")
  59.     (confirm)
  60. )
  61.  
  62. (copyfiles
  63.     (prompt "Copy DOS driver")
  64.     (help @copyfiles-help)
  65.     (source "DOSDrivers/WWBBSAUX")
  66.     (dest "DEVS:DOSDrivers")
  67.     (infos)
  68.     (confirm)
  69. )
  70.  
  71. (copyfiles
  72.     (prompt "Copy binaries")
  73.     (help @copyfiles-help)
  74.     (source "Bin")
  75.     (dest "WWBBS:")
  76.     (all)
  77.     (infos)
  78.     (confirm)
  79. )
  80.  
  81. (set copy-config
  82.     (if is-installed
  83.         (askbool
  84.             (prompt "Do you wish to copy over your old config files?")
  85.             (help "")
  86.             (default 0)
  87.         )
  88.         1
  89.     )
  90. )
  91.  
  92. (if copy-config
  93.     (copyfiles
  94.         (prompt "Copy config files")
  95.         (help @copyfiles-help)
  96.         (source "Config")
  97.         (dest "WWBBS:")
  98.         (all)
  99.         (confirm)
  100.     )
  101. )
  102.  
  103. (set copy-rexx
  104.     (if is-installed
  105.         (askbool
  106.             (prompt "Do you wish to copy over your old rexx script files?")
  107.             (help "")
  108.             (default 0)
  109.         )
  110.         1
  111.     )
  112. )
  113.  
  114. (if copy-rexx
  115.     (copyfiles
  116.         (prompt "Copy REXX files")
  117.         (help @copyfiles-help)
  118.         (source "Rexx")
  119.         (dest "WWBBS:Rexx")
  120.         (all)
  121.         (confirm)
  122.     )
  123. )
  124.  
  125. (makedir "WWBBS:Users"
  126.     (prompt "Create new directory\nWWBBS:Users")
  127.     (help @makedir-help)
  128. )
  129.  
  130. (makedir "WWBBS:Logs"
  131.     (prompt "Create new directory\nWWBBS:Logs")
  132.     (help @makedir-help)
  133. )
  134.  
  135. (makedir "WWBBS:Menus"
  136.     (prompt "Create new directory\nWWBBS:Menus")
  137.     (help @makedir-help)
  138. )
  139.  
  140. (makedir "WWBBS:Messages"
  141.     (prompt "Create new directory\nWWBBS:Messages")
  142.     (help @makedir-help)
  143. )
  144.  
  145. (if
  146.     (exists "WWBBS:BBSRx")
  147.     (protect "WWBBS:BBSRx" "+P")
  148. )
  149.  
  150. (if (NOT is-installed)
  151.     (startup "World Wide BBS"
  152.         (prompt "Add assign to S:User-startup")
  153.         (help @startup-help)
  154.         (command "Assign WWBBS: \"" wwbbs-dir "\"\n")
  155.         (command "Resident WWBBS:BBSRx")
  156.     )
  157. )
  158.  
  159. (run "Resident WWBBS:BBSRx")
  160. (run "Mount DEVS:DOSDrivers/WWBBSAUX")
  161.